const state = {
	sum: 0,
	goods: [
	],
};

const actions = {
	get_sum({commit}, payload) {
		commit('set_sum', payload)
	},
	get_goods({commit}, payload) {
		commit('set_goods', payload)
	},
};

const mutations = {
	set_sum(state, payload) {
		state.sum = payload
		// console.log("11111111111")
	},
	set_goods(state, payload) {
		state.goods = payload
		// console.log("22222222")
	}
}
const getters = {

};

export default {
	namespaced: true,
	state,
	getters,
	mutations,
	actions
}
